package com.demo.mappers;
import org.apache.ibatis.annotations.Param;



/**
 * @Description:违规记录表:mapper
 * @Date:2025-03-01
 * @author：author
*/
public interface ViolationMapper<T,P> extends BaseMapper {


	/**
	 * 根据ViolationId查询
	 */
	 T selectByViolationId(@Param("violationId") Long violationId);

	/**
	 * 根据ViolationId更新
	 */
	 Integer updateByViolationId(@Param("bean")T t, @Param("violationId") Long violationId);

	/**
	 * 根据ViolationId删除
	 */
	 Integer deleteByViolationId(@Param("violationId") Long violationId);

}